package Entities;

import java.io.Serializable;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name = "PlanProdSemiElab")
public class Entity_PlanProdSemiElab implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name = "id_plan_prod_semi_elab")
	private int id;
	@OneToMany(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_plan_prod_semi_elab")
	private List<Entity_Tarea> tareas;
	@Column
	private int horasDisponible;
	

	//GET & SET
	public List<Entity_Tarea> getTareas() {
		return tareas;
	}

	public void setTareas(List<Entity_Tarea> tareas) {
		this.tareas = tareas;
	}

	public int getHorasDisponible() {
		return horasDisponible;
	}

	public void setHorasDisponible(int horasDisponible) {
		this.horasDisponible = horasDisponible;
	}
	
	

	

}
